import { http, instance } from '@/utils/request'

export interface IReqLoginData {
  token: string
}
/**
 * @description 登录请求
 * @param userame
 * @param password
 * @returns
 */
export const reqLogin = (userame: string, password: string) => {
  // return instance.request({
  //   url: '/admin/acl/index/login',
  //   method: 'POST',
  //   data: {
  //     userame,
  //     password
  //   }
  // })
  return http<IReqLoginData>('/admin/acl/index/login', 'POST', { userame, password })
}
